package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Destination;
import cn.wolfcode.luowowo.common.query.DestinationQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DestinationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Destination record);

    Destination selectByPrimaryKey(Long id);

    int updateByPrimaryKey(Destination record);

    List<Destination> selectForList(DestinationQuery qo);

    void updateHotState(@Param("id") Long id, @Param("hot") Integer hot);

    List<Destination> selectDestByRIds(Long[] refIds);

    List<Destination> selectDests();

    List<Destination> listHotDestByRegionId(@Param("regionId") Long regionId);

    List<Destination> selectAll();
}